package cn.gene.timeyan.ams.webapi.mapper;

import cn.gene.timeyan.pojo.admin.model.Advertise;
import cn.gene.timeyan.pojo.admin.vo.AdvertiseVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 广告表  Mapper  接口*
 *
 * @author LWG
 * @date 2022/7/21 16:27
 * @since 1.0.0@gene.cn
 */
@Repository
public interface AdvertiseMapper {
    /**
     * 插入广告
     * @param advertise
     */
    int insertAD(Advertise advertise);

    /**
     * 删除广告
     */
    int deleteADByAdId(Long adId);

    /**
     *修改广告
     */
    void updateADByAdId(Advertise advertise);

    /**
     * 分页查询广告
     */
    List<AdvertiseVO> selectAdvertise();
}
